<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Switch -OM[-|1][=list] - propagate Mark of the Web</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title">Switch <B>-OM[-|1][=list]</B> - propagate Mark of the Web<hr></P>

<p>Internet browsers can add so called Mark of the Web to downloaded files.
It is stored in Zone.Identifier NTFS alternate data stream and provides
the information about file security zone, original location also as other
optional fields. Various software can use it for security purposes.</p>

<p>By default WinRAR copies contents the archive Mark of the Web to files
extracted from this archive if it is allowed by "Propagate Mark of the Web"
option in <a href="HELPSecuritySettings.htm">Security settings</a> dialog,
but this command line switch can be used to override it.</p>

<p>If this switch is followed by '1', all Mark of the Web fields are copied
from archive to extracted files. For -om without '1' only the security zone
value is propagated. Information contained in other fields might be useful to
identify a file source, but it can disclose the potentially confidential
file download location, IP address and other sensitive information if file
is shared with other persons. So the default behavior of this switch without
'1' modifier is to omit all fields except the security zone value.</p>

<p>Optional '-' parameter prohibits Mark of the Web propagation and can be
used to override settings stored in rar.ini configuration file
or <A HREF="HELPRARVar.htm">RARINISWITCHES environment variable</a>.</p>

<p>Optional &lt;list&gt; parameter defines the list of file extensions
separated by semicolons. For example, -om=doc;exe;bat will force WinRAR
to propagate Mark of the Web only for *.doc, *.exe and *.bat files.
It is also allowed to specify wildcard file masks in the list,
so -om=*.doc;*.exe;*.bat will work too. If list is omitted,
all extracted files are assumed.</p>

<p><a href="HELPSwOS.htm">Switch -os</a> can be used to preserve source
files Mark of the Web when archiving, so it is restored when extracting.</p>

<h1><B>Examples</B></h1>

<ol>
  <li>propagate the archive Mark of the Web to all extracted files.
      Include security zone value only</li>
</ol>
<blockquote>
  <p class="sample">WinRAR x -om archive.rar</p>
</blockquote>
<ol start="2">
  <li>propagate the archive Mark of the Web to *.doc and *.exe.
      Include all Mark of the Web fields</li>
</ol>
<blockquote>
  <p class="sample">WinRAR x -om1=doc;exe archive.rar</p>
</blockquote>

</BODY>
</HTML>
